Skip to content

Conversation

@shayne-fletcher
Copy link
Contributor

Summary: we now resolve dynamic link dependencies using rpath.

Differential Revision: D85015990

… libpython3.10.so.1.0 (meta-pytorch#1614)

Summary:

inject an rpath into `_rust_bindings.so`.

we put `-C link-args=-Wl,-rpath,<dir>` into `RUST_FLAGS`.

(directs the dynamic linker at runtime to search <dir> for shared libraries like libpython3.10.so.1.0).

Differential Revision: D84991141
…ath (meta-pytorch#1615)

Summary:


add a linux-only test to verify that `_rust_bindings.so` resolves `libpython` via its injected rpath. the test imports the extension and runs `ldd` to confirm `libpython` is found in the ELF dependency list.

Differential Revision: D84992101
Summary: we now resolve dynamic link dependencies using rpath.

Differential Revision: D85015990
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 19, 2025
@meta-codesync
Copy link

meta-codesync bot commented Oct 19, 2025

@shayne-fletcher has exported this pull request. If you are a Meta employee, you can view the originating Diff in D85015990.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant